package com.jde.parent.result;


/**
 * @description: ResultEnum <br>
 * @date: 2019/8/29 10:17 <br>
 * @author: jiangde <br>
 * @version: 1.0 <br>
 */
public enum ResultEnum implements ResultInterface<ResultEnum> {
    SUCCESS(10000, "成功！"),
    ERROR(10001, "系统错误"),
    EXCEPTION(10002, "系统异常");


    ResultEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    private int code;
    private String msg;

    @Override
    public ResultEnum get() {
        return this;
    }

    @Override
    public int code() {
        return this.code;
    }

    @Override
    public String msg() {
        return this.msg;
    }


}
